package com.mmm.station.security.entity;

import com.mmm.station.security.method.Realm;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by mmm on 2016/12/6.
 */
@ServletComponentScan("com.mmm.station.security")
@Configuration
public class Manager {

    private Realm realm;

    private String encrypt;

    private String responseType;

    private Object authJsonContent;

    private String authSispatcherPath;

    private Object permissionJsonContent;

    private String permissionDispatcherPath;

    public Object getAuthJsonContent() {
        return authJsonContent;
    }

    public void setAuthJsonContent(Object authJsonContent) {
        this.authJsonContent = authJsonContent;
    }

    public String getAuthSispatcherPath() {
        return authSispatcherPath;
    }

    public void setAuthSispatcherPath(String authSispatcherPath) {
        this.authSispatcherPath = authSispatcherPath;
    }

    public Object getPermissionJsonContent() {
        return permissionJsonContent;
    }

    public void setPermissionJsonContent(Object permissionJsonContent) {
        this.permissionJsonContent = permissionJsonContent;
    }

    public String getPermissionDispatcherPath() {
        return permissionDispatcherPath;
    }

    public void setPermissionDispatcherPath(String permissionDispatcherPath) {
        this.permissionDispatcherPath = permissionDispatcherPath;
    }



    public String getResponseType() {
        return responseType;
    }

    public void setResponseType(String responseType) {
        this.responseType = responseType;
    }

    public Realm getRealm() {
        return realm;
    }

    public void setRealm(Realm realm) {
        if (this.realm == null){
            this.realm = realm;
        }
    }

    public String getEncrypt() {
        return encrypt;
    }

    public void setEncrypt(String encrypt) {
        this.encrypt = encrypt;
    }
}
